package com.shangs.platform.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 视频
 * </p>
 *
 * @author shangs
 * @since 2017-10-26
 */
@TableName("cms_video")
public class CmsVideo extends Model<CmsVideo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 专辑ID
     */
	@TableField("album_id")
	private Long albumId;
    /**
     * 专辑名称
     */
	@TableField("album_name")
	private String albumName;
    /**
     * 视频名称
     */
	private String name;
    /**
     * 点播视频路径
     */
	@TableField("video_url")
	private String videoUrl;
    /**
     * 网络视频路径
     */
	@TableField("video_net_url")
	private String videoNetUrl;
    /**
     * 缩略图
     */
	private String thumbnail;
    /**
     * 扩展名
     */
	private String ext;
    /**
     * 分辨率
     */
	private String resolution;
    /**
     * 状态//ra dio/2,隐藏,1,显示
     */
	private Integer status;
    /**
     * 是否评论//radio/2,否,1,是
     */
	@TableField("is_comment")
	private Integer isComment;
    /**
     * 是否推荐：2 否 1 是
     */
	@TableField("is_recommend")
	private Integer isRecommend;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 备注
     */
	private String remark;
    /**
     * 发布时间
     */
	@TableField("publish_time")
	private Date publishTime;
    /**
     * 发布者
     */
	@TableField("publish_user")
	private String publishUser;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 更新者
     */
	@TableField("update_id")
	private Integer updateId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 创建者
     */
	@TableField("create_id")
	private Integer createId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getAlbumId() {
		return albumId;
	}

	public void setAlbumId(Long albumId) {
		this.albumId = albumId;
	}

	public String getAlbumName() {
		return albumName;
	}

	public void setAlbumName(String albumName) {
		this.albumName = albumName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVideoUrl() {
		return videoUrl;
	}

	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}

	public String getVideoNetUrl() {
		return videoNetUrl;
	}

	public void setVideoNetUrl(String videoNetUrl) {
		this.videoNetUrl = videoNetUrl;
	}

	public String getThumbnail() {
		return thumbnail;
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public String getResolution() {
		return resolution;
	}

	public void setResolution(String resolution) {
		this.resolution = resolution;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getIsComment() {
		return isComment;
	}

	public void setIsComment(Integer isComment) {
		this.isComment = isComment;
	}

	public Integer getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(Integer isRecommend) {
		this.isRecommend = isRecommend;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public String getPublishUser() {
		return publishUser;
	}

	public void setPublishUser(String publishUser) {
		this.publishUser = publishUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getUpdateId() {
		return updateId;
	}

	public void setUpdateId(Integer updateId) {
		this.updateId = updateId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getCreateId() {
		return createId;
	}

	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CmsVideo{" +
			"id=" + id +
			", albumId=" + albumId +
			", albumName=" + albumName +
			", name=" + name +
			", videoUrl=" + videoUrl +
			", videoNetUrl=" + videoNetUrl +
			", thumbnail=" + thumbnail +
			", ext=" + ext +
			", resolution=" + resolution +
			", status=" + status +
			", isComment=" + isComment +
			", isRecommend=" + isRecommend +
			", sort=" + sort +
			", remark=" + remark +
			", publishTime=" + publishTime +
			", publishUser=" + publishUser +
			", updateTime=" + updateTime +
			", updateId=" + updateId +
			", createTime=" + createTime +
			", createId=" + createId +
			"}";
	}
}
